/*
 * Mesh.h
 *
 *  Created on: 12-05-2013
 *      Author: Jarek
 */

#ifndef MESH_H_
#define MESH_H_

#include <GlobalData.h>

#include <scene.h>

class Texture;

struct Mesh
{
	uint 		facesCount;

	GLuint		facesBuffer;
	GLuint		verticesBuffer;
	GLuint		colorsBuffer;
	GLuint		normalsBuffer;
	GLuint		texcoordsBuffer;
	GLuint		tangentsBuffer; //?!

	int			materialIndex;

	Texture		*diffuseTexture;
//	Texture		*specularTexture;
//	Texture		*normalMap;
//	Texture		*bumpMap;

	Mesh();
	~Mesh();

	void createMesh(const aiMesh& aimesh);
};

#endif /* MESH_H_ */
